package com.service.impl;

import com.mapper.TestMapper;
import com.entity.Student;
import com.service.ItestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by b5m on 2017/7/17.
 */
@Service
public class TestServiceImpl implements ItestService {

    @Value("${server.url}")
    String server;

    @Autowired
    private TestMapper testMapper;


    @Override
    public Student selectOne() {
        System.err.println(server);
        return testMapper.selectOne();
//        return new Student();
    }
}
